<?php /* Smarty version 2.6.13, created on 2006-11-04 15:27:55
         compiled from file:C:%5Cdev%5Cxampp%5Chtdocs%5Cprojects%5Cbaj%5Csrc%5Cinclude%5Cplugins%5Ccustomers/tpl/customeredit.tpl.php */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'file:C:\\dev\\xampp\\htdocs\\projects\\baj\\src\\include\\plugins\\customers/tpl/customeredit.tpl.php', 9, false),)), $this); ?>
<div class="title">Edit customer</div>
<br /><br />

<form action="<?php echo $this->_tpl_vars['url']; ?>
" method="post">
<input type="hidden" name="action" value="doSubmitSubscriber" />
<input type="hidden" name="id" value="<?php echo $this->_tpl_vars['id']; ?>
" />

<table border=0>
<tr class="<?php echo smarty_function_cycle(array('values' => "dark,light"), $this);?>
">
    <td style="padding-right:5px; text-align:right;">Subscriber ID</td>
    <td><?php echo $this->_tpl_vars['usr']['id']; ?>
</td>
</tr>
<!--
<tr class="<?php echo smarty_function_cycle(array('values' => "dark,light"), $this);?>
">
    <td style="padding-right:5px; text-align:right;">Nickname:</td>
    <td><input type="text" name="name" value="<?php echo $this->_tpl_vars['usr']['name']; ?>
" class="input_text" /></td>
</tr>
-->
<tr class="<?php echo smarty_function_cycle(array('values' => "dark,light"), $this);?>
">
    <td style="padding-right:5px; text-align:right;">First name:</td>
    <td><input type="text" name="fname" value="<?php echo $this->_tpl_vars['usr']['fname']; ?>
" class="input_text" /></td>
</tr>
<tr class="<?php echo smarty_function_cycle(array('values' => "dark,light"), $this);?>
">
    <td style="padding-right:5px; text-align:right;">Last name:</td>
    <td><input type="text" name="lname" value="<?php echo $this->_tpl_vars['usr']['lname']; ?>
" class="input_text" /></td>
</tr>
<tr class="<?php echo smarty_function_cycle(array('values' => "dark,light"), $this);?>
">
    <td style="padding-right:5px; text-align:right;">Email:</td>
    <td><input type="text" name="email" value="<?php echo $this->_tpl_vars['usr']['email']; ?>
" class="input_text" /></td>
</tr>
<tr class="<?php echo smarty_function_cycle(array('values' => "dark,light"), $this);?>
">
    <td style="padding-right:5px; text-align:right;">Country</td>
    <td><input type="text" name="country" value="<?php echo $this->_tpl_vars['usr']['country']; ?>
" class="input_text" /></td>
</tr>

                <tr class="light">
                    <td align="right" width="20%" valign="top">Mail groups:<sup><font color=red></font></sup>&nbsp;</td>
                    <td>
                        <select name="mail_groups[]" class='inputtext' style="width:50%;" size=10 multiple>
                        <?php $_from = $this->_tpl_vars['list_mail_groups']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['group']):
?>
                            <option value="<?php echo $this->_tpl_vars['group']['group_id']; ?>
"<?php if (in_array ( $this->_tpl_vars['group']['group_id'] , $this->_tpl_vars['usr']['mail_groups'] )): ?> selected<?php endif; ?>><?php echo $this->_tpl_vars['group']['name']; ?>
</option>
                        <?php endforeach; endif; unset($_from); ?>
                        </select>
                        <font color="red">(You can select several groups)</font>
                    </td>
                </tr>


<tr class="<?php echo smarty_function_cycle(array('values' => "dark,light"), $this);?>
">
    <td style="padding-right:5px; text-align:right;">Client intrested in</td>
    <td><input readonly type="text" value="<?php echo $this->_tpl_vars['isinterest']; ?>
" class="input_text" /></td>
</tr>

<tr class="<?php echo smarty_function_cycle(array('values' => "dark,light"), $this);?>
">
<td>How user hear about us
</td>
<td>
<select name="how_hear">
<?php $_from = $this->_tpl_vars['hhear']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['itm']):
?>
<option value="<?php echo $this->_tpl_vars['itm']['how_id']; ?>
" <?php if ($this->_tpl_vars['itm']['how_id'] == $this->_tpl_vars['usr']['how_hear']): ?> selected <?php endif; ?>><?php echo $this->_tpl_vars['itm']['how_title']; ?>
</option>
<?php endforeach; endif; unset($_from); ?>
</select>
</td>
</tr>



<tr class="<?php echo smarty_function_cycle(array('values' => "dark,light"), $this);?>
">
    <td style="padding-right:5px; text-align:right;"></td>
    <td>
        <input type="submit" value=" Submit " class="button" />
        &nbsp;&nbsp;
        <input type="button" value=" Cancel " class="button" onclick="javascript: window.location.href='?path=customerslist'" />
    </td>
</tr>
</form>

</table>